package com.example.javaairportflightanalysis.dao;

import com.example.javaairportflightanalysis.dao.sql.AuditProvider;
import com.example.javaairportflightanalysis.domin.check.DfdlCheckAD;
import com.example.javaairportflightanalysis.domin.check.TransferCheckAD;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface AuditMapper {


        @SelectProvider(type = AuditProvider.class,method = "searchBy")
        List<DfdlCheckAD> searchBy(String dfltFlno,Integer status);
        @SelectProvider(type = AuditProvider.class,method ="searchByTransferCheckA")
        List<TransferCheckAD> searchByTransferCheckA(String dfltFlno,Integer status);
        @SelectProvider(type = AuditProvider.class,method = "searchByDfdlCheckD")
        List<DfdlCheckAD> searchByDfdlCheckD(String dfltFlno,Integer status);
        @SelectProvider(type = AuditProvider.class,method = "searchByTransferD")
        List<TransferCheckAD> searchByTransferD(String dfltFlno,Integer status);

}
